package com.room.search.repository;


import com.room.search.domain.RoomDictData;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Optional;

@Repository
public interface RoomDictDataRepository extends JpaRepository<RoomDictData, Long>, JpaSpecificationExecutor<RoomDictData> {

    List<RoomDictData> findAllByType(String type);

    Optional<RoomDictData> findByTypeAndDictLabel(String type, String delByDictLabel);
}
